package com.aphrodite.ui.widgets.browser;

import java.util.Vector;

import javax.microedition.lcdui.Graphics;

import com.aphrodite.parser.Attribute;
import com.aphrodite.parser.ParseEvent;
import com.aphrodite.parser.XmlParser;
import com.aphrodite.xml.XMLReader;

class UL extends BrowserElement {
	Vector elements;

	UL() {
		elements = new Vector();
	}

	void add(String list) {
		System.out.println("text added " + list);
		int w = 5 + HTMLBrowser.currentFont.stringWidth(list);
		if (width < w)
			width = w;
		height += HTMLBrowser.currentFont.getHeight() + 2;
		elements.addElement(list);
	}

	void draw(Graphics g) {
		// for (int i = 0; i < elements.size(); i++) {

		// }
		g.fillRect(x, y, width, height);
	}

	void process(XmlParser parser, ParseEvent pe, Attribute attr) {

	}

	void process(XMLReader reader) {
	// TODO Auto-generated method stub

	}

}
